package com.doyens.gmall.product.controller;

import com.doyens.gmall.common.result.Result;
import com.doyens.gmall.model.product.BaseTrademark;
import com.doyens.gmall.product.service.BaseTardemarkService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "品牌列表操作")
@RestController
@RequestMapping("admin/product/baseTrademark")
public class BaseTrademarkController {

    @Autowired
    private BaseTardemarkService baseTardemarkService;

    ///admin/product/baseTrademark/getTrademarkList get
    @GetMapping("getTrademarkList")
    public Result getTrademarkList(){
        List<BaseTrademark> baseTrademarks = baseTardemarkService.list(null);
        return Result.ok(baseTrademarks);
    }

}
